//  import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import App from './App.vue'
import router from './router'

import ganttastic from '@infectoone/vue-ganttastic';
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
import Maxios from './Http/MesHelp'

// 数据访问import axios from 'axios'// 添加JWT token信息
Maxios.defaults.headers.common["Authorization"] = "Bearer " + window.localStorage.getItem("token");
// 设置全局语言为中文 
dayjs.locale('zh-cn');

const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn,
})

app.use(ganttastic)
app.use(createPinia())
app.use(router)

app.mount('#app')
